home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Source / Arashi 1.1 Source / For your think c folder / Sound Kit ƒ / Shuddup.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-09  |  1.4 KB  |  53 lines  |  [TEXT/KAHL]

  1. /*/
  2.      Project Arashi: Shuddup.h
  3.      Major release: Version 1.1, 7/22/92
  4.  
  5.      Last modification: Wednesday, September 9, 1992, 22:12
  6.      Created: Saturday, March 18, 1989, 0:55
  7.  
  8.      Copyright © 1989-1992, Juri Munkki
  9. /*/
  10.  
  11. #ifndef __RETRACE__
  12. #include <Retrace.h>
  13. #endif
  14.  
  15. typedef    struct
  16. {
  17.     Ptr            SoundB;        /*    Sound data buffer address            */
  18.     long        SoundP;        /*    Sound data buffer offset            */
  19.     Ptr            ChanA;        /*    Channel A sampled data ptr            */
  20.     Ptr            ChanB;        /*    Channel B sampled data ptr            */
  21.     int            CountA;        /*    When count reaches 0, sound ends.    */
  22.     int            CountB;        /*    Initially Count = Len / 188            */
  23.     int            PriA;        /*    Channel A priority.                    */
  24.     int            PriB;        /*    Channel B priority.                    */
  25.     ioParam        SPar;        /*    Parameter block for our sound        */
  26.     VBLTask        VBL;        /*    VBLTask entry                        */
  27.     long        *TickPtr;    /*    Private Tickcount Pointer            */
  28.     long        SKOpen;        /*    -1 if sound kit is open.            */
  29.     int            volume;        /*    Between 1 and 8                        */
  30. }    VVars;
  31.  
  32. /*    Sound kit uses the following resource type for all resources:    */
  33. #define    SKRESTYPE    'SKIT'
  34. #define    SKSYSJUMP    1000
  35. #define    SKSTABLE    1001
  36. #define    SKHUFFMANN    1002
  37. /*
  38. >>    The following structure exists for every sound.
  39. */
  40. typedef    struct
  41. {
  42.     Ptr        Poin;
  43.     long    Len;
  44.     int        Count;    
  45. }    SoundStuff;
  46.  
  47. #ifndef SOUNDKIT_MAIN
  48. extern    VVars        Vv;
  49. extern    SoundStuff    *Sounds;    /*    Storage for sound info            */
  50. extern    int            NumSounds;
  51. extern    Ptr            SKPtr;
  52. extern    int            OldSound;
  53. #endif